package com.tjise.eduservice.controller;

import com.tjise.commonutils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import org.springframework.web.bind.annotation.*;

/**
 * @program: tjise_parent
 * @description: 登陆功能
 * @author: 郑朝文
 * @create: 2021-06-23 14:07
 **/

@RestController
@Api(description = "登陆功能")
@RequestMapping("/eduservice/user")

public class EduLoginController {
    /**
     * 登陆的方法
     */

    @PostMapping("login")
    public R login() {


        return R.ok().data("token", "admin");
    }

    /**
     * info的方法
     */
    @GetMapping("info")
    public R info() {
        return R.ok().data("name", "admin").data("roles", "admin").data("avatar", "\n" +
                "https://tjiseedu.oss-cn-beijing.aliyuncs.com/2021/06/24a06228d1823a405494e5e4c401447e0c%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210426153514.jpg");

    }


}


